package com.example.demo.config;

import com.labijie.caching.ICacheManager;
import com.labijie.caching.memory.MemoryCacheManager;
import com.labijie.caching.memory.MemoryCacheOptions;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CacheConfig {

    @Bean
    public ICacheManager initCacheManager() {
        ICacheManager memoryCache = new MemoryCacheManager(new MemoryCacheOptions());
        return memoryCache;
    }
}
